 /**
 * Created by shbs on 04/07/2017.
 */
import * as types from "./mutation-types";
export default {
    setuser:({commit, state, dispatch}, {user})=>{
        localStorage.setItem("user",JSON.stringify(user));
        commit(types.SET_USER,user);
    },
    logoutaction({commit, state, dispatch}){
        localStorage.removeItem("user");
        commit(types.SET_USER,null);
    }

}
